package com.lxf.project.inteface.entity;

import javax.validation.constraints.NotNull;

import java.io.Serializable;

/**
 * 订单类
 */
public class Order implements Serializable {
    @NotNull // 不允许为空
    private String userName;
    @NotNull(message = "地址不") // 不允许为空
    private String address;
    @NotNull(message="订单不能为空") // 不允许为空
    private String orderNun;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getOrderNun() {
        return orderNun;
    }

    public void setOrderNun(String orderNun) {
        this.orderNun = orderNun;
    }

    @Override
    public String toString() {
        return "Order{" +
                "userName='" + userName + '\'' +
                ", address='" + address + '\'' +
                ", orderNun='" + orderNun + '\'' +
                '}';
    }
}
